package cn.xd.base.persistence.dos;

import cn.xd.base.domain.entity.KeyValue;
import cn.xd.core.converter.Converter;
import cn.xd.core.converter.ReferenceMapper;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(uses = ReferenceMapper.class)
public interface KeyValueConverter extends Converter<KeyValue, KeyValueDO> {

    KeyValueConverter INSTANCE = Mappers.getMapper(KeyValueConverter.class);

    List<KeyValue> fromData(List<KeyValueDO> keyValueDOS);
}
